# Copyright (c) 2018 Presto Labs Pte. Ltd.
# Author: jhkim

from absl import app

import logging

from coin.support.accounting.logic.key_util import get_key_file
from coin.exchange.bitflyer_v1.kr_rest.native_private_client import (BitflyerNativePrivateClient)


def main(_):
  key_file = get_key_file("Futures", "Bitflyer", "japan1", None, "view")
  client = BitflyerNativePrivateClient(key_file)
  print(client.query_account_asset_balance())


if __name__ == '__main__':
  logging.basicConfig(level='DEBUG', format='%(levelname)8s %(asctime)s %(name)s] %(message)s')
  app.run(main)
